package com.hfzy.ihk.web.linkcall.conf;

import com.hfzy.ihk.common.support.redis.RedisConfig;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * Created by Administrator on 2018/1/29.
 *
 * @author wws
 */
@Configuration
@Import(RedisConfig.class)
public class ElasticSearchConfig {

    @Value("${spring.profiles.active}")
    public String  profile;

    public String indexName() {
        return "hf_linkcall_"+profile;
    }

}
